package com.uml.umlwork.dto.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@ApiModel("课程修改信息DTO")
@Getter
@Setter
@NoArgsConstructor
public class UpdateCourseDTO {
    @ApiModelProperty("课程ID")
    @NotNull(message = "课程id不能为空")
    private Integer courseId;

    @ApiModelProperty("名称")
    @NotNull(message = "课程名称不能为空")
    private String courseName;

    @ApiModelProperty("开放状态")
    @NotNull(message = "开放状态不能为空")
    private String isOpen;

    @ApiModelProperty("季度")
    @NotNull(message = "季度不能为空")
    private String season;

    @ApiModelProperty("年份")
    @NotNull(message = "年份不能为空")
    private String year;
}
